package com.klikmee.sms.core.base.resolvers;

import com.klikmee.sms.core.model.IncomingMessage;
import com.klikmee.sms.core.model.Service;

/**
 * <p>
 * Resolves incoming message to the registered service by matching destination
 * address and message syntax.
 * </p>
 */
public interface IncomingMessage2ServiceResolver {
	/**
	 * Resolves service for the incoming message.
	 * 
	 * @param incomingMessage incoming message that is to be resolved
	 * @return instance of the service matched for this message
	 */
	public Service resolve(IncomingMessage incomingMessage);
}
